﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp10
{
    class Program
    {
        static void Main(string[] args)
        {
            Queue queue = new Queue();
            queue.Enqueue("Hana");
            queue.Enqueue("Dul");
            queue.Enqueue("Set");
            queue.Enqueue("Net");
            Console.WriteLine("加入购物车");
            IEnumerator enumerator = queue.GetEnumerator();
            while (enumerator.MoveNext())
            {
                Console.WriteLine(enumerator.Current);
            }

            
            while (queue.Count!=0)
            {
                Console.WriteLine(queue.Dequeue()+"购买成功"); 
            }
            Console.WriteLine("购买结束，回到购物车");

           
            
        }
    }
}
